package com.zlx.rulemk.marketing.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: zhanglingxing
 * @CreateTime: 2022-07-09
 * @Description: 事件code的唯一映射
 * @Version: 1.0
 * TODO : 后期可以扩展
 */
public class EventIDEncodeUtil {

    public static String getEventCode(String eventId){
        Map<String,String> hashMap = new HashMap<>();
        // A、B、C、D、E、F、G、H、I、J、K、L、M、N、O、P、Q、R、S、T、U、V、W、X、Y、Z
        // 将来可以用业务端 加载定义好的动态映射的规则
        hashMap.put("A","A");
        hashMap.put("B","B");
        hashMap.put("C","C");
        hashMap.put("D","D");
        hashMap.put("E","E");
        hashMap.put("F","F");
        hashMap.put("G","G");
        hashMap.put("H","H");
        hashMap.put("I","I");
        hashMap.put("J","J");
        hashMap.put("K","K");
        hashMap.put("M","M");
        hashMap.put("L","L");
        hashMap.put("N","N");
        hashMap.put("O","O");
        hashMap.put("P","P");
        hashMap.put("Q","Q");
        hashMap.put("R","R");
        hashMap.put("S","S");
        hashMap.put("T","T");
        hashMap.put("U","U");
        hashMap.put("V","V");
        hashMap.put("W","W");
        hashMap.put("X","X");
        hashMap.put("Y","Y");
        hashMap.put("Z","Z");
        return hashMap.get(eventId);
    }

}
